package org.broadway.monitor.dsl;


/**
 * This interface is designed to be used with the MonitorDsl.
 * Its purpose is to capture a conditional expression that will
 * be evaluateed during monitor scan. 
 * value.
 * 
 * @author vladimir vivien
 * @param <EXPRESSION_TYPE> - the type of the expression.
 * @see When
 * @see MonitorDsl
 */
public interface Conditional <EXPRESSION_TYPE>{
	/**
	 * Implement this method to capture the expression for the conditional.
	 * @param expression 
	 * @return Conditional
	 */
	public Conditional setExpression(EXPRESSION_TYPE expression);
	
}
